package com.ssy.lingxi.pay.entity;

import javax.persistence.*;
import java.io.Serializable;

/**
 * 授信审批表
 * @author 伍将
 * @date 2020/8/18
 * @version 2.0.0
 */
@Entity
@Table(schema = "public", name = "pay_credit_verify",
        indexes = {@Index(name = "pay_credit_verify_apply_id_idx", columnList = "applyId")})
public class CreditVerifyDO implements Serializable {

    private static final long serialVersionUID = -7606451206994649957L;
    /**
     * 审批id
     */
    @Id
    @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "credit_verify_seq")
    @SequenceGenerator(sequenceName = "pay_credit_verify_seq", name = "credit_verify_seq", allocationSize = 1)
    private Long id;

    /**
     * 授信申请id
     */
    @Column(columnDefinition = "int8", nullable = false)
    private Long applyId;

    /**
     * 审批额度
     */
    @Column(columnDefinition = "decimal", nullable = false)
    private Double quota;

    /**
     * 账单日
     */
    @Column(columnDefinition = "int", nullable = false)
    private Integer billDay;

    /**
     * 还款周期
     */
    @Column(columnDefinition = "int", nullable = false)
    private Integer repayPeriod;

    /**
     * 审批时间
     */
    @Column(columnDefinition = "int8", nullable = false)
    private Long verifyTime;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getApplyId() {
        return applyId;
    }

    public void setApplyId(Long applyId) {
        this.applyId = applyId;
    }

    public Double getQuota() {
        return quota;
    }

    public void setQuota(Double quota) {
        this.quota = quota;
    }

    public Integer getBillDay() {
        return billDay;
    }

    public void setBillDay(Integer billDay) {
        this.billDay = billDay;
    }

    public Integer getRepayPeriod() {
        return repayPeriod;
    }

    public void setRepayPeriod(Integer repayPeriod) {
        this.repayPeriod = repayPeriod;
    }

    public Long getVerifyTime() {
        return verifyTime;
    }

    public void setVerifyTime(Long verifyTime) {
        this.verifyTime = verifyTime;
    }
}
